/**
 * @description 获取等待时间
 */
export default function(time) {
	const now = Date.now();
	const dTime = now - time;
	console.log("dTime", dTime);
	if (dTime > 0) {
		const m = dTime / 1000 / 60;
		const h = m / 60;
		const d = h / 24;

		if (m < 60) {
			return `${parseInt(m)}分钟`;
		} else if (h < 24) {
			return `${parseInt(h)}小时`;
		}
		return `${parseInt(d)}天`;
	}
	return 0;
};